package com.yj.timecapsule.common.response;

import lombok.Data;

import java.util.List;

/**
 * @author Sean
 */
@Data
public class PageResponse<T> {
    private long total;
    private List<T> list;

    public static<T> PageResponse<T> create(long total,List<T> list){
        PageResponse<T> pageResponse = new PageResponse<>();
        pageResponse.setTotal(total);
        pageResponse.setList(list);
        return pageResponse;
    }
}
